import React, {Component} from 'react';
import {withRouter,Link} from 'react-router-dom'

import "./../static/404.styl"

export default class Error404 extends React.Component{
  goRouter(d) {
    this.props.history.push(d)
  }
  render(){
    return(
      <div style={{width:"100%",height:"100%",background:"white"}}>
        <div className="error404">
          <img src={require("./../static/image/states_404.png")} alt=""/>
          <div className="errorEvent" onClick={()=>this.goRouter()}>
            返回主页
          </div>
        </div>
      </div>
    );
  }
}